<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Integral extends Model
{
    public $timestamps = false;
    protected $connection = 'xz';
    protected $table = 'integral';
    use HasFactory;
    
    const TYPE = ['sign'=>'1','information'=>'2','push'=>'3','share'=>'4','node'=>'5','course'=>'6'];
    const TYPENAME = ['sign'=>'签到','information'=>'资料','push'=>'发布内容','share'=>'分享','node'=>'工艺节点','course'=>'课程'];
    const INTEGRAL = ['sign'=>'1','push'=>'2','share'=>'5'];
    public function getCreateTimeAttribute(string $value)
    {
        return Date("Y-m-d H:i:s",$value);
    }

}
